package com.vmj.classfile.entity;

import com.vmj.classfile.ClassReader;

/**
 * Created by yangshoujun on 2017/8/6 上午11:14.
 */
public abstract class AbstractConstantInfo implements ConstantInfo{

    int tag;
    ClassReader reader;
    ConstantPool constantPool;

    public AbstractConstantInfo(ClassReader reader) {
        this.reader = reader;
    }

    public abstract void parse();

    public int getTag() {
        return tag;
    }

    public ClassReader getReader() {
        return reader;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public void setReader(ClassReader reader) {
        this.reader = reader;
    }

    public ConstantPool getConstantPool() {
        return constantPool;
    }

    public void setConstantPool(ConstantPool constantPool) {
        this.constantPool = constantPool;
    }
}
